﻿using ProjectFootball.MVC.Foundation.ResourceLibrary;
using System;
using System.ComponentModel.DataAnnotations;

namespace ProjectFootball.MVC.Areas.VenueArea.Models
{
    public class VenueDataModel
    {
        public VenueDataModel()
        {
            ActiveFrom = DateTime.Today;
            ActiveTo = _DateTime.HighDate;
        }

        public Guid VenueGuid { get; set; }
        public Guid ApprovalGuid { get; set; }

        [Display(Name = "Venue name")]
        [Required]
        public string VenueName { get; set; }

        public string Address { get; set; }

        [UIHint("DropDown/Country")]
        [Display(Name = "Country")]
        [Required]
        public Guid CountryGuid { get; set; }

        [UIHint("Integer")]
        public int? Capacity { get; set; }

        [Display(Name = "Active from")]
        [DataType(DataType.Date)]
        public DateTime ActiveFrom { get; set; }

        [Display(Name = "Active to")]
        [DataType(DataType.Date)]
        public DateTime ActiveTo { get; set; }
    }
}